<?php

namespace IDock\Insurance\ZYIC\Request;

use IDock\Insurance\ZYIC\Request\AllZYICRequest;
use IDock\Insurance\ZYIC\Response\VehicleModelResponse;
use IDock\Visitor\VehicleModelVisitor;

class VehicleModelRequest extends AllZYICRequest
{
    public $route = 'channelInterface/V03';

    protected $response = VehicleModelResponse::class;

    protected $urlTip = '车型查询';

    /*** @var  VehicleModelVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        $modelName = str_replace("牌",'',$this->visitor->vehicleModel);
        return [
            'pageNo' => 1,
            'pageSize' => 100,
            'queryType' => '03',//03默认
            'vehicleName' => $modelName,
        ];
    }
}
